<p xmlns:fn="http://java.sun.com/jsp/jstl/functions">#{fn:trim('  trim some spaces   ')}</p>